﻿using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace Miao.SourceGen.Learn
{
    public class MyReceiver : ISyntaxReceiver
    {

        internal List<StructDeclarationSyntax> _AspectCandidates = new List<StructDeclarationSyntax>();
        readonly CancellationToken _cancellationToken;


        public MyReceiver(CancellationToken cancellationToken)
        {
            _cancellationToken = cancellationToken;
        }

        ///查找作为方面类型的候选声明的所有候选SyntaxNode。
        ///SyntaxNode必须是实现Unity的StructDeclarationSyntax。实体。IAspect＜T＞
        public void OnVisitSyntaxNode(SyntaxNode syntaxNode)
        {
            //_cancellationToken = cancellationToken;
        }
    }
}
